<template>
  <div class="wrapper">
    <div class="body">
      <el-scrollbar class="scrollbar" height="100%">
        <SenseItem />
        <p v-for="item in 100" :key="item">
          {{ item }}
        </p>
      </el-scrollbar>
    </div>
    <div class="footer">
      <div class="left"></div>
      <div class="right">
        <div class="btn">
          <Setting class="icon setting" />
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import SenseItem from '../components/SenseItem.vue'
</script>

<style scoped lang="scss">
.body {
  height: calc(100% - 45px);
  position: relative;
  .scrollbar {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }
}
.footer {
  height: 45px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .left,
  .right {
    height: 100%;
    display: flex;
    align-items: center;
  }
  .btn {
    width: 50px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-2);
    &:hover {
      color: var(--c-text-1);
    }
  }
  .setting {
    font-size: 20px;
  }
}
</style>
